package com.example.demo.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  历史版本类
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("history_version")
public class HistoryVersion {
    @TableId(type = IdType.AUTO)
    private Integer id;
    /** 笔记编号（外键） */
    private Integer noteId;
    /** 目录分组（可重复） */
    private int directoryId;
    /** 版本号 */
    private Integer version;

    public HistoryVersion(Integer noteId,int directoryId,Integer version) {
        this.noteId = noteId;
        this.directoryId = directoryId;
        this.version = version;
    }
}
